package ynu.lcy.service;

import org.springframework.web.multipart.MultipartFile;
import ynu.lcy.dto.file.UploadFileRequest;
import ynu.lcy.elememicroservicecommon.enums.FileUploadBizEnum;

public interface UploadService {

    /**
     * 文件上传
     *
     * @param uploadFileRequest
     * @param fileRoot
     * @return
     */
    public String uploadFile(UploadFileRequest uploadFileRequest, String fileRoot);

    /**
     * 校验文件
     *
     * @param multipartFile
     * @param fileUploadBizEnum 业务类型
     */
    public void validFile(MultipartFile multipartFile, FileUploadBizEnum fileUploadBizEnum);

}
